#include <iostream>
#include <stdlib.h>
using namespace std;

class Time
{
    public:
        int hour;
        int minute;
        int sec;
};

int main()
{
    void set_time(Time&);
    void show_time(Time&);

    Time t1;
    set_time(t1);
    show_time(t1);
    Time t2;
    set_time(t2);
    show_time(t2);
    system("pause");
    return 0;
}

void set_time(Time& t)
{
    cin>>t.hour;
    cin>>t.minute;
    cin>>t.sec;
}
void show_time(Time& t)
{

    cout<<t.hour<<":";
    cout<<t.minute<<":";
    cout<<t.sec;

}